<template>
  <div class="new">
    <div class="content">
      <div class="header">
        <h3>歌单推荐</h3>
      </div>
      <listShow :itemArr="listArr"/>
    </div>
  </div>
</template>

<script>
import listShow from '@/components/MyList/listShow'

export default {
  props: {
    type: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      listObj: {},
      listArr: []
    }
  },
  components: {
    listShow
  },
  methods: {
    getData () {
      this.axios({
        params: {
          limit: 9
        },
        url: 'top/playlist/highquality'
      }).then(res => {
        this.listObj = res.data
        this.listArr = this.listObj.playlists
      })
    }
  },
  created () {
    this.getData()
  }
}
</script>

<style lang="less" scoped>
.new{
  .content{
    background-color: #fff;
    margin: 20px 20px;
    padding: 60px 40px;
    .header{
      display: flex;
      justify-content: space-between;
      margin-bottom: 30px;
      h3{
        font-size: 40px;
      }
      a{
        color: black;
        cursor: pointer;
      }
    }
  }
}
</style>
